package com.ruoyi.asset.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.asset.mapper.PropertyParkingMapper;
import com.ruoyi.asset.domain.PropertyParking;
import com.ruoyi.asset.service.IPropertyParkingService;

/**
 * 车位档案Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class PropertyParkingServiceImpl implements IPropertyParkingService 
{
    @Autowired
    private PropertyParkingMapper propertyParkingMapper;

    /**
     * 查询车位档案
     * 
     * @param parkingId 车位档案主键
     * @return 车位档案
     */
    @Override
    public PropertyParking selectPropertyParkingByParkingId(Long parkingId)
    {
        return propertyParkingMapper.selectPropertyParkingByParkingId(parkingId);
    }

    /**
     * 查询车位档案列表
     * 
     * @param propertyParking 车位档案
     * @return 车位档案
     */
    @Override
    public List<PropertyParking> selectPropertyParkingList(PropertyParking propertyParking)
    {
        return propertyParkingMapper.selectPropertyParkingList(propertyParking);
    }

    /**
     * 新增车位档案
     * 
     * @param propertyParking 车位档案
     * @return 结果
     */
    @Override
    public int insertPropertyParking(PropertyParking propertyParking)
    {
        return propertyParkingMapper.insertPropertyParking(propertyParking);
    }

    /**
     * 修改车位档案
     * 
     * @param propertyParking 车位档案
     * @return 结果
     */
    @Override
    public int updatePropertyParking(PropertyParking propertyParking)
    {
        return propertyParkingMapper.updatePropertyParking(propertyParking);
    }

    /**
     * 批量删除车位档案
     * 
     * @param parkingIds 需要删除的车位档案主键
     * @return 结果
     */
    @Override
    public int deletePropertyParkingByParkingIds(Long[] parkingIds)
    {
        return propertyParkingMapper.deletePropertyParkingByParkingIds(parkingIds);
    }

    /**
     * 删除车位档案信息
     * 
     * @param parkingId 车位档案主键
     * @return 结果
     */
    @Override
    public int deletePropertyParkingByParkingId(Long parkingId)
    {
        return propertyParkingMapper.deletePropertyParkingByParkingId(parkingId);
    }
}
